package net.huanger.gametools.mapeditor.ui.impl;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseEvent;

import net.huanger.gametools.mapeditor.model.MapModel;
import net.huanger.gametools.mapeditor.ui.MUtils;

public class GuidesOperate extends AbstractOperate
{

  public GuidesOperate(int row, int column)
  {
    super(row, column);
    Graphics g=getImage().getGraphics();
    g.setColor(Color.blue);
    for(int r=1;r<row;r++){
      g.drawLine(0, r*MUtils.MAP_UNIT, column*MUtils.MAP_UNIT, r*MUtils.MAP_UNIT);
    }
    for(int c=1;c<column;c++){
      g.drawLine(c*MUtils.MAP_UNIT, 0,c*MUtils.MAP_UNIT, row*MUtils.MAP_UNIT);
    }
    g.dispose();
  }

  @Override
  public void init()
  {
  }

  @Override
  public void titeClick(MouseEvent e, int row, int column)
  {
  }

  @Override
  public void mapClick(MouseEvent e)
  {
  }

  @Override
  public boolean hasData()
  {
    return false;
  }

  @Override
  public int[] getData()
  {
    return null;
  }


  @Override
  public void restoreData(MapModel mm)
  {
    // TODO Auto-generated method stub
    
  }

}
